package com.bawei.hgshop.entity;

import java.io.Serializable;

/**
 * 品牌
 * @时间  2021-1-12  8:39:02
 *
 */
public class Brand implements Serializable  {
	 
	/**
	 * 
	 */
	private static final long serialVersionUID = -1531138640285363587L;
	
	private int id               ;
	private String name             ;
	private String firstChar       ;
	private int  deletedFlag     ;
	private String picPath         ;
	private String spjy             ;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFirstChar() {
		return firstChar;
	}
	public void setFirstChar(String firstChar) {
		this.firstChar = firstChar;
	}
	public int getDeletedFlag() {
		return deletedFlag;
	}
	public void setDeletedFlag(int deletedFlag) {
		this.deletedFlag = deletedFlag;
	}
	public String getPicPath() {
		return picPath;
	}
	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}
	public String getSpjy() {
		return spjy;
	}
	public void setSpjy(String spjy) {
		this.spjy = spjy;
	}
	@Override
	public String toString() {
		return "Brand [id=" + id + ", name=" + name + ", firstChar=" + firstChar + ", deletedFlag=" + deletedFlag
				+ ", picPath=" + picPath + ", spjy=" + spjy + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + deletedFlag;
		result = prime * result + ((firstChar == null) ? 0 : firstChar.hashCode());
		result = prime * result + id;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((picPath == null) ? 0 : picPath.hashCode());
		result = prime * result + ((spjy == null) ? 0 : spjy.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Brand other = (Brand) obj;
		if (deletedFlag != other.deletedFlag)
			return false;
		if (firstChar == null) {
			if (other.firstChar != null)
				return false;
		} else if (!firstChar.equals(other.firstChar))
			return false;
		if (id != other.id)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (picPath == null) {
			if (other.picPath != null)
				return false;
		} else if (!picPath.equals(other.picPath))
			return false;
		if (spjy == null) {
			if (other.spjy != null)
				return false;
		} else if (!spjy.equals(other.spjy))
			return false;
		return true;
	}
	
	

}
